import request from '@/utils/request'

// 查询医生列表
export function doctorList(query) {
  return request({
    url: '/base/doctor/list',
    method: 'get',
    params: query
  })
}
// 新增医生
export function addDoctor(data) {
  return request({
    url: '/base/doctor',
    method: 'post',
    data: data
  })
}


// 获取医院详细信息
export function doctorlById(id) {
  return request({
    url: `/base/doctor/${id}`,
    method: 'get',
  })
}


// 修改医生
export function eitHdoctor(data) {
  return request({
    url: '/base/doctor',
    method: 'put',
    data: data
  })
}

// 删除科室
export function delDoctor(id) {
  return request({
    url: `/base/doctor/${id}`,
    method: 'delete'
  })
}

// 启用医院
export function addenabled(id) {
  return request({
    url: `/base/doctor/enabled/${id}`,
    method: 'get',
  })
}